package com.resolution.dietaryassessment.view.mydietary.surface;

import java.io.Serializable;

/**
 * @author By Resolusion
 * @Title: 蛋白质来源评价
 * @Date: 2020/5/11
 * @Time: 16:50
 * @email Res01ution@foxmail.com
 */
public class ProteinSource implements Serializable {
    private String source;
    private int myProportion;

    private String mProportion;
    private String myProportionStr;

    private String evaluate;

    public ProteinSource(String source, String mProportion, int myProportion){
        this.source = source;
        this.myProportion = myProportion;
        this.mProportion = mProportion;
        myProportionStr = myProportion + "%";
        if (myProportion > 70) {
            evaluate = "不合理";
        }else if (myProportion < 30){
            evaluate = "不合理";
        }else {
            evaluate = "正常";
        }
    }

    public String setSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public int getMyProportion() {
        return myProportion;
    }

    public void setMyProportion(int myProportion) {
        this.myProportion = myProportion;
    }

    public String getmProportion() {
        return mProportion;
    }

    public void setmProportion(String mProportion) {
        this.mProportion = mProportion;
    }

    public String getMyProportionStr() {
        return myProportionStr;
    }

    public void setMyProportionStr(String myProportionStr) {
        this.myProportionStr = myProportionStr;
    }

    public String getEvaluate() {
        return evaluate;
    }

    public void setEvaluate(String evaluate) {
        this.evaluate = evaluate;
    }
}
